package com.example.first.controller;

import com.example.first.module.pojo.UserRecordDO;
import com.example.first.service.UserRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统用户档案 前端控制层
 *
 * @author Lv
 * @date 2024/01/03
 */
@RestController
@RequestMapping("/user_record")
public class UserRecordController {

    @Autowired
    private UserRecordService userRecordService;

    /**
     * 获取详情
     *
     * @param id 用户档案id
     * @return
     */
    @GetMapping("/get/{id}")
    public UserRecordDO get(@PathVariable("id") Long id) {
        return userRecordService.getById(id);
    }
}

